use std::future::Future;

pub fn run<F: Future>(future: F) {
    tokio::runtime::Builder::new()
        .enable_all()
        .threaded_scheduler()
        .build()
        .unwrap()
        .block_on(future);
}
